<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>document2html: src/libs/curlwrapper/curlwrapper.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">document2html
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Documents to HTML converter</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('curlwrapper_8cpp.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">curlwrapper.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;fstream&gt;</code><br />
<code>#include &lt;random&gt;</code><br />
<code>#include &quot;<a class="el" href="tools_8hpp_source.html">../tools.hpp</a>&quot;</code><br />
<code>#include &lt;curl/curl.h&gt;</code><br />
<code>#include &quot;<a class="el" href="curlwrapper_8hpp_source.html">curlwrapper.hpp</a>&quot;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacecurlwrapper"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecurlwrapper.html">curlwrapper</a></td></tr>
<tr class="memdesc:namespacecurlwrapper"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for cURL library. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aa3d8308115782ec266848322d3ce9cea"><td class="memItemLeft" align="right" valign="top"><a id="aa3d8308115782ec266848322d3ce9cea"></a>
std::default_random_engine&#160;</td><td class="memItemRight" valign="bottom"><b>curlwrapper::gen</b> (rd())</td></tr>
<tr class="separator:aa3d8308115782ec266848322d3ce9cea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1162bb7be8fe09a965a7a1bb0cdfbf39"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecurlwrapper.html#a1162bb7be8fe09a965a7a1bb0cdfbf39">curlwrapper::getRandomProxy</a> (const std::vector&lt; std::string &gt; &amp;proxyList)</td></tr>
<tr class="memdesc:a1162bb7be8fe09a965a7a1bb0cdfbf39"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get random proxy.  <a href="namespacecurlwrapper.html#a1162bb7be8fe09a965a7a1bb0cdfbf39">More...</a><br /></td></tr>
<tr class="separator:a1162bb7be8fe09a965a7a1bb0cdfbf39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50f3677ad83d7880032bddbf3bc27539"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecurlwrapper.html#a50f3677ad83d7880032bddbf3bc27539">curlwrapper::curlCallbackFunc</a> (void *contents, size_t size, size_t nmemb, std::string *s)</td></tr>
<tr class="memdesc:a50f3677ad83d7880032bddbf3bc27539"><td class="mdescLeft">&#160;</td><td class="mdescRight">cURL callback function which allows save site content to <code>std::string</code>  <a href="namespacecurlwrapper.html#a50f3677ad83d7880032bddbf3bc27539">More...</a><br /></td></tr>
<tr class="separator:a50f3677ad83d7880032bddbf3bc27539"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6ecf5b2f117ccd38e9373d963c08774"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecurlwrapper.html#aa6ecf5b2f117ccd38e9373d963c08774">curlwrapper::getPageContent</a> (int &amp;code, const std::string &amp;link, long timeout=20, int attemptCount=1, int interval=0, const std::string &amp;userAgent=&quot;&quot;, const std::vector&lt; std::string &gt; &amp;headerList={}, const std::vector&lt; std::string &gt; &amp;cookieList={}, const std::vector&lt; std::string &gt; &amp;proxyList={})</td></tr>
<tr class="memdesc:aa6ecf5b2f117ccd38e9373d963c08774"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get site content.  <a href="namespacecurlwrapper.html#aa6ecf5b2f117ccd38e9373d963c08774">More...</a><br /></td></tr>
<tr class="separator:aa6ecf5b2f117ccd38e9373d963c08774"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9be8a703f474d8851f71d6c5116ff05"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecurlwrapper.html#ab9be8a703f474d8851f71d6c5116ff05">curlwrapper::downloadFile</a> (const std::string &amp;link, const std::string &amp;path, long timeout=20, int attemptCount=1, int interval=0, const std::string &amp;userAgent=&quot;&quot;, const std::vector&lt; std::string &gt; &amp;headerList={}, const std::vector&lt; std::string &gt; &amp;cookieList={}, const std::vector&lt; std::string &gt; &amp;proxyList={})</td></tr>
<tr class="memdesc:ab9be8a703f474d8851f71d6c5116ff05"><td class="mdescLeft">&#160;</td><td class="mdescRight">Download and save file.  <a href="namespacecurlwrapper.html#ab9be8a703f474d8851f71d6c5116ff05">More...</a><br /></td></tr>
<tr class="separator:ab9be8a703f474d8851f71d6c5116ff05"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a6a41482f52b105a2f72bf435ab5c22df"><td class="memItemLeft" align="right" valign="top"><a id="a6a41482f52b105a2f72bf435ab5c22df"></a>
std::random_device&#160;</td><td class="memItemRight" valign="bottom"><b>curlwrapper::rd</b></td></tr>
<tr class="separator:a6a41482f52b105a2f72bf435ab5c22df"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><dl class="section author"><dt>Author</dt><dd>dmryutov (<a href="#" onclick="location.href='mai'+'lto:'+'dmr'+'yu'+'tov'+'@g'+'mai'+'l.'+'com'; return false;">dmryu<span style="display: none;">.nosp@m.</span>tov@<span style="display: none;">.nosp@m.</span>gmail<span style="display: none;">.nosp@m.</span>.com</a>) </dd></dl>
<dl class="section date"><dt>Date</dt><dd>23.03.2017 &ndash; 29.10.2017 </dd></dl>
</div></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_87a455bccb09a92130c26a11a880c98a.html">libs</a></li><li class="navelem"><a class="el" href="dir_ec7c55f329a59c1a8ed86894bf350ddf.html">curlwrapper</a></li><li class="navelem"><a class="el" href="curlwrapper_8cpp.html">curlwrapper.cpp</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
